package com.qst.service.impl;

import com.qst.dao.ClazzMapper;
import com.qst.po.Clazz;
import com.qst.service.IClazzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ClazzServiceImpl implements IClazzService {
    @Autowired
    private ClazzMapper clazzMapper;
    @Override
    public List<Clazz> getclazzbytid(int tid) {
        return clazzMapper.getclazzbytid(tid);
    }

    @Override
    public int gettotalcount(int tid) {
        return clazzMapper.gettotalcount(tid);
    }

    @Override
    public List<Clazz> getclazzsbypagetid(int tid, int page, int limit) {
        return clazzMapper.getclazzsbypagetid(tid,(page-1)*limit,limit);
    }
}
